package ltd.dujiabao.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author : DuJiabao
 * @Project : spring
 * @Time : 2021/5/13 14:06
 * @Desc :
 */
public class EmailEvent extends ApplicationEvent {
  private String address;
  private String text;

  public EmailEvent(Object source) {
    super(source);
  }

  public EmailEvent(Object source, String address, String text) {
    super(source);
    this.address = address;
    this.text = text;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  @Override
  public String toString() {
    return "EmailEvent{" +
            "address='" + address + '\'' +
            ", text='" + text + '\'' +
            '}';
  }
}
